MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering.Tools Namespace / EnumerableExtension Class / ForceInBackground Method / ForceInBackground<T>(IEnumerable<T>,CancellationToken) Method
The type of elements in the sequence.
The source sequence.
A token to cancel enumeration.

In This Topic
ForceInBackground<T>(IEnumerable<T>,CancellationToken) Method
In This Topic
Forces evaluation of the given IEnumerable in a separate thread and returns a new IEnumerable to be enumerated in the current thread.
Syntax
'Declaration
 
Public Overloads Shared Function ForceInBackground(Of T)( _
   ByVal src As IEnumerable(Of T), _
   ByVal cancellationToken As CancellationToken _
) As IEnumerable(Of T)
 

Parameters

src
The source sequence.
cancellationToken
A token to cancel enumeration.

Type Parameters

T
The type of elements in the sequence.

Return Value

A sequence that is evaluated in a background thread.
See Also